import service from '@/utils/request.js'
// axios发送请求后,得到数据,promise.then方法,或者async

// 校验码的获取
export const userCaptchaApi = () => {
    return service({
        method: 'GET',
        url: '/misc/captcha',
    })
};
// 手机验证码的获取
// /misc/sms/send
export const userMiscApi = (data) => {
    return service({
        method: 'POST',
        url: '/misc/sms/send',
        // data: data
        data
    })
};
// /user/fast-login
export const fastLoginApi = (data) => {
    return service({
        method: 'POST',
        url: '/user/fast-login',
        data
    })
};
// /user/profile
export const profileApi = () => {
    return service({
        method: 'GET',
        url: '/user/profile',

    })
};

// /user/login
export const loginApi = (data) => {
    return service({
        method: 'POST',
        url: '/user/login',
        data

    })
};